package com.windowes.weichang.utils;

/***
 *
 * @author: yangqing
 * @email: qing.yang@bangdao-tech.com
 * @createTime: 2018/7/14 下午9:22
 * @description:
 *
 **/
public class RedisPrefixUtil {


    public static String PREFIX = "NOTIFICATION:";
    public static String APPOINT_PREFIX = PREFIX + "APPOINT:";


    public static String messageToOrderId(String message) {
        return message.substring(APPOINT_PREFIX.length(), message.length());
    }

    public static String generateAppointKey(Integer orderId) {
        return APPOINT_PREFIX + orderId;
    }

}
